//
//  PTdaTeViewController.m
//  KCFurProject
//
//  Created by ios程序员 on 15/11/24.
//  Copyright © 2015年 ios程序员. All rights reserved.
//

#import "PTdaTeViewController.h"
#import "UIScrollView+JYPaging.h"
#import "PituandateViewController.h"
#import "PtDateView.h"
@interface PTdaTeViewController ()
@property (nonatomic ,strong) PtDateView *ptView;

@end

@implementation PTdaTeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    self.scrollView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.scrollView];
    // Do any additional setup after loading the view.
    self.edgesForExtendedLayout = UIRectEdgeNone;
    
    _scrollView.contentSize = CGSizeMake(0, 360*HEIGH);
    
    PituandateViewController *detailVC = [[PituandateViewController alloc] init];
    [self addChildViewController:detailVC];
    
    // just for force load view
    if (detailVC.view != nil) {
        _scrollView.secondScrollView = detailVC.scrollView;
    }
    [self ptViews];

}

-(void)ptViews
{
    self.ptView = [[PtDateView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 400*HEIGH)];
    [self.scrollView addSubview:self.ptView];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
